package com.bjc.chapter17;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: jvm_demo
 * @description: -XX:+PrintCommandLineFlags 使用jdk:1.9  -Xloggc:./logs/gc.log
 * @author: bjc
 * @create: 2022-02-21 21:52
 */
public class GCLogTest {

    public static void main(String[] args) {
        List<byte[]> list = new ArrayList<>();
        for (int i = 0; i < 500; i++) {
            byte[] arr = new byte[100*1024];
            list.add(arr);
            try {
                Thread.sleep(50);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
